﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AnesSystem.Models;
using MongoDB.Bson;
using Common;

namespace AnesSystem.Models.Model.Hospital.CQ.CQTL
{
    public class PatientLinkModel: AnesSystem.Models.PatientLinkModel
    {
        private CQTLMaZuiTongYiModel maZuiTongYi;
        private CQTLShuHouFangShiModel shuHouFangShi;
        private CQTLShuQianFangShiModel shuQianFangShi;

        public PatientLinkModel()
        {
            //Patient.PropertyChanged +=Item_PropertyChanged;
            //Status.PropertyChanged += Item_PropertyChanged;
            //Application.PropertyChanged += Item_PropertyChanged;
            //AnesthesiaRecord.PropertyChanged += Item_PropertyChanged;
            //VitalSignShow.PropertyChanged += Item_PropertyChanged;
            //Pacu.PropertyChanged += Item_PropertyChanged;

        }

        public CQTLMaZuiTongYiModel MaZuiTongYi
        {
            get
            {
                if (maZuiTongYi == null)
                {
                    maZuiTongYi = new CQTLMaZuiTongYiModel();
                }
                return maZuiTongYi;
            }

            set
            {
                maZuiTongYi = value;
                RaisePropertyChanged("MaZuiTongYi");
            }
        }

        public CQTLShuHouFangShiModel ShuHouFangShi
        {
            get
            {
                if (shuHouFangShi == null)
                {
                    shuHouFangShi = new CQTLShuHouFangShiModel();
                }
                return shuHouFangShi;
            }

            set
            {
                shuHouFangShi = value;
                RaisePropertyChanged("ShuHouFangShi");
            }
        }

        public CQTLShuQianFangShiModel ShuQianFangShi
        {
            get
            {
                if (shuQianFangShi == null)
                {
                    shuQianFangShi = new CQTLShuQianFangShiModel();
                }
                return shuQianFangShi;
            }

            set
            {
                shuQianFangShi = value;
                RaisePropertyChanged("ShuQianFangShi");
            }
        }
    }
}